﻿using Newtonsoft.Json;

namespace Hpt.Device.Sample.Dto;

public class TimeGetResponse : DeviceResponseBaseV1
{
    /// <summary>
    /// 服务器时间(yyyyMMddHHmmssw)
    /// </summary>
    [JsonProperty(NullValueHandling = NullValueHandling.Include, Order = 2)]
    public string Time { get; set; }

    /// <summary>
    /// 设备自动关机时间(HH:mm),安卓设备支持
    /// </summary>
    [JsonProperty(NullValueHandling = NullValueHandling.Include, Order = 3)]
    public string? CloseTime { get; set; }

    /// <summary>
    /// 上报交易图片,仅限安卓人脸设备
    /// </summary>
    [JsonProperty(NullValueHandling = NullValueHandling.Include, Order = 4)]
    public bool UploadImage { get; set; }

    /// <summary>
    /// 固定金额
    /// </summary>
    [JsonProperty(NullValueHandling = NullValueHandling.Ignore, Order = 5)]
    public decimal? TimePrice { get; set; }

    /// <summary>
    /// 支持批量上报人脸同步任务处理结果(1-支持，其他-不支持),仅限安卓人脸设备
    /// </summary>
    [JsonProperty(NullValueHandling = NullValueHandling.Include, Order = 6)]
    public byte? BatchUpdate { get; set; } = 1;

    /// <summary>
    /// 卡号大小端模式
    /// </summary>
    [JsonProperty(NullValueHandling = NullValueHandling.Include, Order = 7)]
    public bool? IsLittleEndian { get; set; } = true;

    /// <summary>
    /// 流水指针
    /// </summary>
    public string StartAddr { get; set; }

    /// <summary>
    /// 是否请求超时强制转离线状态
    /// </summary>
    public bool AutoOfflineTrade { get; set; }
}